package com.bgs.exception.eg;

public class ExceptionDemo01 {

	public static void main(String[] args) {
		
		int a = 1;
		int b = 0;
		int c = 0;
		try {
			System.out.println("hello t1111::: ");
			c = a / b;
			System.out.println("hello t2222::: ");
		} catch(Exception e) {
			System.out.println("exception-3333::: " + e.getMessage());
			e.printStackTrace();
			// 异常处理
		}
		System.out.println("hello exception-4444444444::: " + c);
	}
	
	public void fun1() {
		fun2();
		System.out.println("hello fun1");
	}
	public static void fun2() {
		System.out.println("hello static fun2");
	}
}
